<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1,user-scalable=no">
    <title>APP下载</title>
    <style>
        *{
            padding:0;margin:0
        }
        body{
            font-family: "Helvetica Neue",Helvetica,STHeiTi,sans-serif;
            line-height: 1.5;
            font-size: 16px;
            color: #000;
            background-color: #f8f8f8;
        }
        button{
            outline:none
        }
        .text h1{
            text-align:center;
            font-size:30px;
            margin-top:30px;
            color:#0b9bf0;
        }
        .text h2{
            text-align:center;
            font-size:16px;
            color:#999;
            font-weight:normal
        }
        .btnbox{
            text-align:center;
            padding:20px 50px;
            margin-top:20px;
        }
        .btn_down{
            width: 100%;
            height: 50px;
            border-radius: 26px;
            border: 0;
            background-color: #0b9bf0;
            font-size: 18px;
            color: #fff;
            -webkit-appearance: button;
            box-shadow: 0 3px 0px 3px #0a82ca;
            -webkit-box-shadow: 0 3px 0px 3px #0a82ca;
            font-weight: bold;
        }
        .btn_down:active{
            border:1px solid #000
        }

        .mask{
            position: fixed;
            background-color: rgba(0,0,0,.5);
            text-align: right;
            left: 0;top:0;
            width: 100%;
            height: 100%;
            display: none;
        }
    </style>
</head>
<style>
    body{font-size: 14px}
    .ui-container p{
        margin-bottom: 8px;
    }
</style>
<body style="display: none;">


<div class="text">
    <h1>机匣子碎屏险 v1.0</h1>
    <h2>安心可靠的手机保镖</h2>
</div>
<div class="banner" style="margin-top: -90px">
    <img src="/wx/img/banner.png" width="100%">
</div>
<div class="btnbox">
    <button type="button" class="btn_down">下载机匣子客户端</button>
</div>

<div class="mask">
    <img src="/wx/img/tishi.png" width="80%" style="margin: 20px">
</div>


<script src="//cdn.juqingdata.com/assets/js/zepto.min.js"></script>
<script>
    $(function(){
        var ua = navigator.userAgent.toLowerCase();
        var isWX = ua.match(/(micromessenger)/);
        if(isWX){
            $('body').show();

            $('.btn_down').tap(function(){
                $('.mask').show();
            });
            $('.mask').tap(function(){
                $(this).hide();
            });
        }else{
            location.href = location.protocol + '//m.juqingdata.com/rest/svcWxPage/download';
        }
    });
</script>
</body>
</html>